package org.qingke.mail.item.service.controller;

import org.qingke.mail.common.ServerResponse;
import org.qingke.mail.item.service.provider.ItemCatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 商品分类服务控制器
 * @author Administrator
 *
 */
@RestController
@RequestMapping("/itemcat")
public class ItemCatController {
   
	@Autowired
	private ItemCatService itemCatService;
	
	@RequestMapping("/queryByParentId")
	public ServerResponse queryByParentId(long parentId){
		return itemCatService.queryByParentId(parentId);
	}
}
